package controllers

import (
	"bigbackend/utils"
	"github.com/gin-gonic/gin"
	"net/http"
)

func GetHead(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["head_info"]
	c.JSON(http.StatusOK, result)
}

func GetCenterData(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["center_data"]
	c.JSON(http.StatusOK, result)
}

func GetCenterLeft1(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["center_left1"]
	c.JSON(http.StatusOK, result)
}

func GetCenterLeft2(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["center_left2"]
	c.JSON(http.StatusOK, result)

}

func GetCenterRight1(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["center_right1"]
	c.JSON(http.StatusOK, result)
}

func GetCenterRight2(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["center_right2"]
	c.JSON(http.StatusOK, result)
}

func GetBottomLeft(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["bottom_left"]
	c.JSON(http.StatusOK, result)
}

func GetBottomRight(c *gin.Context) {
	cars := utils.CarsClient
	result := cars["bottom_right"]
	c.JSON(http.StatusOK, result)
}
